import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Element from 'element-ui';
import request from '@/utils/request' // api: https://github.com/axios/axios
import dataV from '@jiaminghi/data-view' //api:http://datav.jiaminghi.com/guide/
// import formCreate from '@form-create/element-ui' // http://www.form-create.com/v2/element-ui/
// Vue.use(formCreate);

import "@/directive"; //directive
import './icons' // icon
import 'normalize.css';
// import 'element-ui/lib/theme-chalk/index.css';
import './assets/scss/index.scss'
import './components' // 自定义组件
// delete Element.Dialog
Vue.use(Element, {
	size: sessionStorage.getItem('ElementSize') || 'mini',
	zIndex: 3000
});
Vue.use(dataV)
if (process.env.NODE_ENV === 'development') require('../mock')
Vue.config.productionTip = false
Vue.prototype.$http = request // ajax请求方法
new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')